import request from '@/utils/request'

// 查询章程列表
export function listVfRegulation(query) {
  return request({
    url: '/system/vfRegulation/list',
    method: 'get',
    params: query
  })
}

// 查询章程详细
export function getVfRegulation(regulationId) {
  return request({
    url: '/system/vfRegulation/' + regulationId,
    method: 'get'
  })
}

// 新增章程
export function addVfRegulation(data) {
  return request({
    url: '/system/vfRegulation',
    method: 'post',
    data: data
  })
}

// 修改章程
export function updateVfRegulation(data) {
  return request({
    url: '/system/vfRegulation',
    method: 'put',
    data: data
  })
}

// 删除章程
export function delVfRegulation(regulationId) {
  return request({
    url: '/system/vfRegulation/' + regulationId,
    method: 'delete'
  })
}
